from datetime import timedelta

# ping binary
PING_TIMEOUT = 3

# icmplib timeout
ICMP_TIMEOUT = 1

DOMAIN = "parental_controls"

PING_PRIVS = "ping_privs"

BINARY_SENSOR = "binary_sensor"
DEVICE_TRACKER = "device_tracker"

IS_ALIVE = "is_alive"

ATTR_ROUND_TRIP_TIME_AVG = "round_trip_time_avg"
ATTR_ROUND_TRIP_TIME_MAX = "round_trip_time_max"
ATTR_ROUND_TRIP_TIME_MIN = "round_trip_time_min"


SIGNAL_STATE_UPDATED = "{}.updated".format(DOMAIN)

MIN_UPDATE_INTERVAL = 1
DEFAULT_UPDATE_INTERVAL = 10

DEFAULT_SSL = False
DEFAULT_VERIFY_SSL = False

CONN_TIMEOUT = 5.0

CONF_RPC = "rpc"
CONF_BLACKLIST = "blacklist"
